package com.liuchuanzheng.lcz_wanandroid.ui.repository

import com.liuchuanzheng.lcz_wanandroid.net.ArticleListBean
import com.liuchuanzheng.lcz_wanandroid.net.ResponseData
import com.liuchuanzheng.lcz_wanandroid.net.RetrofitClient
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext

/**
 * @author 刘传政
 * @date 2021/6/28 9:55
 * QQ:1052374416
 * 电话:18501231486
 * 作用:
 * 注意事项:
 */
class QuestionRepository {
    suspend fun getQuestionList(page:Int): ResponseData<ArticleListBean> {
        return withContext(Dispatchers.IO){
            RetrofitClient.service.getQuestionList(page)
        }
    }
}